package com.kgcx.system.mapper;

import com.kgcx.system.domain.SysRoleMenu;

import java.util.List;

import org.apache.ibatis.annotations.Param;
/**
 * @description 系统角色菜单持久层
 * @author 何凯
 * @version 0.1
 * @time 2017/12/15 9:58
 * @since 0.1
 */
public interface SysRoleMenuMapper {

    int deleteByPrimaryKey(Integer kid);

    /**
     * 根据角色删除角色菜单
     * @param roleId
     * @return
     */
    int deleteByRoleId(Integer roleId);

    int insert(SysRoleMenu record);

    /**
     * 批量新增角色菜单
     * @param list
     */
    void insertByBatch(List<SysRoleMenu> list);

    SysRoleMenu selectByPrimaryKey(Integer kid);

    List<SysRoleMenu> queryListByRoleId(Integer roleId);

    List<SysRoleMenu> queryListByEmployeeId(@Param("employeeId")Integer employeeId);

    List<SysRoleMenu> getMenuByroleIds(@Param("roleIds") List<Integer> roleIds);

}
